package com.sm.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sm.auth.entity.UmsMenu;
import com.sm.auth.entity.UmsSysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<UmsSysUser> {

    UmsSysUser selectUserByUsername(String username);
    List<UmsMenu> selectMenuByRoleIds(@Param("roleIds") List<Long> roleIds);

}
